Security News
The Unpaid Backbone of Open Source: Solo Maintainers Face Increasing Security Demands
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
character-entities-legacy
Advanced tools
The character-entities-legacy npm package provides a collection of character entity references (such as & for an ampersand) that were used in older versions of HTML (up to HTML 4.01 and XHTML 1.0). These entities are useful for encoding special characters in HTML to ensure they are displayed correctly in a web browser. The package can be used to reference these entities in a project without having to remember the specific codes.
Character Entity References
This package includes a list of character entity references for legacy HTML, which can be used to encode special characters in web documents.
"©" // Represents the copyright symbol (©)
The 'entities' package is a more comprehensive library for encoding and decoding HTML entities. It supports all the latest HTML5 entities and provides functions for both encoding and decoding text. It is more feature-rich compared to character-entities-legacy, which focuses on legacy entities.
The 'he' package (short for HTML entities) is a robust HTML entity encoder/decoder written in JavaScript. It supports all HTML5 entities and has the ability to encode/decode to/from any character set. It is more modern and feature-complete than character-entities-legacy.
HTML legacy character entity information: for legacy reasons some character
entities are not required to have a trailing semicolon: ©
is perfectly
okay for ©
.
npm:
npm install character-entities-legacy
var characterEntitiesLegacy = require('character-entities-legacy')
console.log(characterEntitiesLegacy.copy) // => '©'
console.log(characterEntitiesLegacy.frac34) // => '¾'
console.log(characterEntitiesLegacy.sup1) // => '¹'
characterEntitiesLegacy
Mapping between (case-sensitive) legacy character entity names to replacements.
See whatwg/html
.
character-entities
— HTML character entity infocharacter-entities-html4
— HTML 4 character entity infoparse-entities
— Parse HTML character referencesstringify-entities
— Serialize HTML character referencesFAQs
List of legacy HTML named character references that don’t need a trailing semicolon
The npm package character-entities-legacy receives a total of 8,175,825 weekly downloads. As such, character-entities-legacy popularity was classified as popular.
We found that character-entities-legacy demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.
Security News
A developer is accusing Tencent of violating the GPL by modifying a Python utility and changing its license to BSD, highlighting the importance of copyleft compliance.